package liangtWorkSpace.threadDemo.ATM;

/**
 * @ClassName Bank
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/7/4 16:31
 */
public class Bank {
    static int money = 1000;

    public void Cpunter(int moneyAll){
        Bank.money -= moneyAll;
        System.out.println("A 取走了"+moneyAll+" 剩余"+this.money);
    }
    public void ATM(int money){
        Bank.money -= money;
        System.out.println("B 取走了"+money+" 剩余"+this.money);
    }
}
